package com.wuming.caiwu.service.impl;

import com.wuming.caiwu.core.BusinessException;
import com.wuming.caiwu.dao.SysAppletSetMapper;
import com.wuming.caiwu.model.SysAppletSet;
import com.wuming.caiwu.service.SysAppletSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("sysAppletSetService")
public class SysAppletSetServiceImpl extends BaseServiceImpl implements SysAppletSetService {

    @Autowired
    private SysAppletSetMapper sysAppletSetMapper;

    @Override
    public void saveSysAppletSet(SysAppletSet set) throws BusinessException {
        sysAppletSetMapper.insert(set);
    }

    @Override
    public void modifySysAppletSet(SysAppletSet set) throws BusinessException {
        sysAppletSetMapper.updateByPrimaryKey(set);
    }

    @Override
    public SysAppletSet getSysAppletSetById(Long id) throws BusinessException {
        return sysAppletSetMapper.selectByPrimaryKey(id);
    }

    @Override
    public void removeSysAppletSetById(Long id) throws BusinessException {
        sysAppletSetMapper.deleteByPrimaryKey(id);
    }
}
